﻿
// CallDllDlg.h: 头文件
//

#pragma once

#define UM_SHOWTRAY WM_USER+100
#define UM_SHOWTEXT WM_USER+101


// CCallDllDlg 对话框
class CCallDllDlg : public CDialogEx
{
// 构造
public:
	CCallDllDlg(CWnd* pParent = nullptr);	// 标准构造函数

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_CallDll_DIALOG };
#endif

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持


// 实现
protected:
	
	// 生成的消息映射函数
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg LRESULT onShowTray(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT onShowText(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnClickedButton1();
	CButton mBtn;
	CEdit mEdit;
	CString mEditValue;
	afx_msg void OnSize(UINT nType, int cx, int cy);
private:
	HICON m_hIcon;
	NOTIFYICONDATA m_nid;
	void DoTray();
	LRESULT ShowMainWindow();
public:
	afx_msg void OnClose();
	afx_msg void OnDestroy();
	afx_msg void OnMenuitemExit();
	afx_msg void OnMenuitemShow();
	afx_msg void OnMenuitemStartdown();
	afx_msg void OnMenuitemStartup();
};
